package com.quanxiaoha.weblog.web.model.vo.favorite;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;
import java.util.List;

/**
 * 收藏列表响应VO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@ApiModel(value = "收藏列表响应VO")
public class FindFavoriteListRspVO {

    @ApiModelProperty(value = "收藏文章列表")
    private List<FavoriteArticleRspVO> articles;

    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    @ApiModel(value = "收藏文章响应VO")
    public static class FavoriteArticleRspVO {

        @ApiModelProperty(value = "收藏ID")
        private Long favoriteId;

        @ApiModelProperty(value = "文章ID")
        private Long articleId;

        @ApiModelProperty(value = "文章标题")
        private String title;

        @ApiModelProperty(value = "文章封面")
        private String cover;

        @ApiModelProperty(value = "文章摘要")
        private String summary;

        @ApiModelProperty(value = "文章作者")
        private String author;

        @ApiModelProperty(value = "文章创建时间")
        private LocalDateTime articleCreateTime;

        @ApiModelProperty(value = "收藏时间")
        private LocalDateTime favoriteCreateTime;

        @ApiModelProperty(value = "阅读次数")
        private Integer readNum;

        @ApiModelProperty(value = "分类名称")
        private String categoryName;

        @ApiModelProperty(value = "标签列表")
        private List<String> tags;
    }
}
